package cn.bdqn.service.impl;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cn.bdqn.dao.StaffMapper;
import cn.bdqn.pojo.Staff;
import cn.bdqn.service.StaffService;

@Service("staffService")
public class StaffServiceImpl implements StaffService {
        
        @Resource(name="staffMapper")
        public StaffMapper staffM;

        @Override	// 校验帐号密码
		public String querystaff(String user, String pwd) {
			// TODO Auto-generated method stub
			return staffM.querystaff(user, pwd);
		}
        
		@Override	// 查询帐号是否存在
		public int queryuser(String user) {
			// TODO Auto-generated method stub
			return staffM.queryuser(user);
		}

		@Override	// 添加用户
		public int addStaff(Staff staff) {
			// TODO Auto-generated method stub
			return staffM.addStaff(staff);
		}

		

        

}
